package com.task5.service.impl;

import com.task5.dao.IUserDao;
import com.task5.dao.impl.IUserDaoImpl;
import com.task5.entity.User;
import com.task5.service.IUserService;

public class IUserServiceImpl implements IUserService{
	private IUserDao dao = new IUserDaoImpl();
	@Override
	public User login(String name,String passwd) throws Exception {
		return dao.login(new User(name,passwd));
	}

	@Override
	public User regist(String name,String passwd,String stelphone,String address) throws Exception {
		return dao.regist(new User(name,passwd,stelphone,address));
	}
}
